package com.gtw.modules.sys.controller;

import com.gtw.common.utils.R;
import com.gtw.modules.entity.TbExpressCode;
import com.gtw.modules.sys.service.TbExpressCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/** 物流
 * Created by wuye on 2018/4/9.
 */
@RestController
@RequestMapping("/sys/expresscode")
public class SysExpresscodeController {

    @Autowired
    private TbExpressCodeService tbExpressCodeService;


    /**
     * 查询所有快递信息
     * @return
     */
    @RequestMapping("/foundList")
    public R foundList(){
        List<TbExpressCode> list = tbExpressCodeService.foundAll();
        return R.ok().put("data",list);
    }
}
